<?php
	include_once "tinchinh_db.php";
	
	class tinchinh_bs
	{
		//--------------Field---------------
		private $MaBaiViet = -1;
		public function SetMaBaiViet($MaBaiViet)       { $this->MaBaiViet = $MaBaiViet;       }
		public function GetMaBaiViet()                 { return $this->MaBaiViet;             }
		
		private $ThoiGianChon = "0000-00-00 00:00:00";	
		public function SetThoiGianChon($ThoiGianChon) { $this->ThoiGianChon = $ThoiGianChon; }
		public function GetThoiGianChon()              { return $this->ThoiGianChon;          }
		
		//--------------Method---------------
		public function Them()
		{
			$data = new tinchinh_db();
			return $data->Them($this->MaBaiViet);
		}
		
		public function Xoa()
		{
			$data = new tinchinh_db();
			return $data->Xoa($this->MaBaiViet);
		}
		
		public function LayDanhSach()
		{
			$data = new tinchinh_db();
			return $data->LayDanhSach();
		}
		public function LayDanhSachPhanTrang($Start, $Limit)
		{
			$data = new tinchinh_db();
			return $data->LayDanhSachPhanTrang($Start, $Limit);
		}
		public function TonTai()
		{
			$data = new tinchinh_db();
			return $data->TonTai($this->MaBaiViet);
		}
	}
?>